<!DOCTYPE html>
<html lang="zh-CN">

<head>

  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">

  <title>8 - 发光方块（HTML+CSS）</title>

  <link rel="stylesheet" href="./css/index.css">

</head>

<body>

  <div class="cube">
    <div class="top">
      <h2>8</h2>
    </div>

    <div class="box">
      <span style="--i:0">
        <h2>发</h2>
        <h2>发</h2>
      </span>
      <span style="--i:1">
        <h2>光</h2>
        <h2>光</h2>
      </span>
      <span style="--i:2">
        <h2>方</h2>
        <h2>方</h2>
      </span>
      <span style="--i:3">
        <h2>块</h2>
        <h2>块</h2>
      </span>
    </div>
  </div>

</body>

</html>